﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using tiDE.API;
using tiDE.API.Utility;
using System.ComponentModel;

namespace tiDE.Packers
{
    public class Program83PlusPacker : IPacker
    {
        public void Pack(byte[] Output, Project Project, string OutputFile)
        {
            Program83PlusProjectData data = Project.Tag as Program83PlusProjectData;
            DataConverter.Save8xp(true, Output, data.OnCalcName, OutputFile);
        }

        public string OutputExtention
        {
            get { return "8xp"; }
        }
    }

    [Serializable]
    public class Program83PlusProjectData
    {
        public string OnCalcName { get; set; }
    }
}
